<script type="text/html" id="barDemo">
    <div class="layui-btn-group">
        <a class="layui-btn layui-btn-sm" data-option="{allow_nocheck:true}" lay-event="refreshTable">刷新</a>
        <a href="{:U('addField',array('model_id'=>$model_id))}" class="layui-btn layui-btn-sm layui-btn-normal">添加</a>
    </div>
</script>

<script type="text/html" id="rowBar">
    <a href="<php>echo U('addField',array('model_id'=>$model_id,'id'=>array('{{ d.id }}',0)))</php>" class="layui-btn layui-btn-xs" title="编辑模型">编辑</a>
    <a _href="{:U('delField')}" class="layui-btn layui-btn-danger layui-btn-xs ml0" data-option="{pullData:'id',confirm:'确定删除该字段？',
        layer:{
            end:function(){layui.table.reload('{$option.id}')}
        }
    }" lay-event="ajaxGet">删除</a>
</script>